Page({
  data: {
    formData: {
      provinceAndCity: {
        title: "所属省市",
        holder: "",
        key: "provinceAndCity",
        value: "",
        barType: "KeyBoardType:text",
        isEnable: true,
        isRequired: true,
      },
    },
    imgUrls: [{
        imgUrl: 'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg',
        txt: "11"
      },
      {
        imgUrl: 'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg',
        txt: "22"
      },
      {
        imgUrl: 'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg',
        txt: "33"
      }
    ],
    indicatorDots: true,
    autoplay: true,
    interval: 5000,
    duration: 1000
  },


  user_boat: function (e) {
    wx.navigateTo({
      url: '../boat/BoatList/BoatList',
    })
  },

  user_cargo: function (e) {
    wx.navigateTo({
      url: '../cargo/CargoList/CargoList',
    })
  },

  setPlain: function (e) {
    
  },

  onLoad: function(options) {
    // Do some initialize when page load.
  },
  onReady: function() {
    // Do something when page ready.
  },
  onShow: function() {
    // Do something when page show.
  },
  onHide: function() {
    // Do something when page hide.
  },
  onUnload: function() {
    // Do something when page close.
  },
  onPullDownRefresh: function() {
    // Do something when pull down.
  },
  onReachBottom: function() {
    // Do something when page reach bottom.
  },
  onShareAppMessage: function() {
    // return custom share data when user share.
  },
  onPageScroll: function() {
    // Do something when page scroll
  },
  onTabItemTap(item) {
    console.log(item.index)
    console.log(item.pagePath)
    console.log(item.text)
  },
  // Event handler.
  viewTap: function() {
    this.setData({
      text: 'Set some data for updating view.'
    }, function() {
      // this is setData callback
    })
  },
  customData: {
    hi: 'MINA'
  }
})